package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;
import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/2/9.
 */

public class leftTpyeReq extends BaseReq {
    private String type;
    private String get_sub;
    private String page;
    private String page_size;
    private String secret;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGet_sub() {
        return get_sub;
    }

    public void setGet_sub(String get_sub) {
        this.get_sub = get_sub;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getPage_size() {
        return page_size;
    }

    public void setPage_size(String page_size) {
        this.page_size = page_size;
    }

    public String urlString() {
        return "product/type";
    }

    public String getSecret() {
        String string = "type=" + type + "&get_sub=" + get_sub +
                "&page=" + page + "&page_size=" + page_size;

        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        Log.e("ssss", "侧边栏_source==》" + string);
        return secret;
    }
}
